package com.springboot.mapper;

import com.springboot.model.DoctorInfoForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface DoctorInfoFormMapper {
    int deleteByPrimaryKey(Integer doctorId);

    int insert(DoctorInfoForm record);

    int insertSelective(DoctorInfoForm record);

    DoctorInfoForm selectByPrimaryKey(Integer doctorId);

    int updateByPrimaryKeySelective(DoctorInfoForm record);

    int updateByPrimaryKey(DoctorInfoForm record);

    //测试
    DoctorInfoForm selectByTel(String Tel);

    //根据含有的职称查找，返回医生列表
    ArrayList<DoctorInfoForm> selectIncludeByRank(@Param("Rank") String Rank);

    //根据职称或者姓名查找
    ArrayList<DoctorInfoForm> selectByRankOrName(@Param("searchText") String searchText);
}